package com.leilbase.jwtoauth.controller;

import org.springframework.security.core.Authentication;
import org.springframework.security.core.authority.AuthorityUtils;
import org.springframework.security.oauth2.provider.OAuth2Authentication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @program: sc-alibaba
 * @description: 用户接口
 * @author: Leil
 * @create: 2019-08-22 16:09
 */
@RestController
@RequestMapping("/user")
public class UserController {


    @RequestMapping(value = "/info")
    public Authentication user(Authentication user) {
        return user;
    }

}
